<template>
  <div class="info">
    <el-tabs v-model="activeName" @tab-click="tabClick">
      <el-tab-pane label="推荐课程" name="1">
        <recommendSubject v-if="activeName === '1'"/>
      </el-tab-pane>
      <el-tab-pane label="首页配置项" name="2">
        <index-tab v-if="activeName === '2'"/>
      </el-tab-pane>
      <el-tab-pane label="广告设置" name="3">
        <advertising v-if="activeName === '3'"/>
      </el-tab-pane>
    </el-tabs>
  </div>
</template>

<script>
import Subtable from '@/components/Eltable'
import IndexTab from './components/zerotheme/setindex'
import RecommendSubject from './components/zerotheme/recommendSubject'
import Advertising from './components/zerotheme/advertising'

export default {
  components: {
    RecommendSubject,
    Subtable,
    IndexTab,
    Advertising
  },
  data() {
    return {
      activeName: '1'
    }
  },
  methods: {
    tabClick() {
      console.log('tab')
    }
  }
}
</script>

<style lang="scss" scoped>
.info {
  padding: 0px 20px;
}
</style>
